﻿namespace Konata.Core.Packets.Tlv.Model;

internal class T142Body : TlvBody
{
    public readonly ushort _version = 0;
    public readonly string _apkId;

    public T142Body(string apkId)
        : base()
    {
        _version = 0;
        _apkId = apkId;

        PutUshortBE(_version);
        PutString(_apkId, Prefix.Uint16, 32);
    }

    public T142Body(byte[] data)
        : base(data)
    {
        TakeUshortBE(out _version);
        TakeString(out _apkId, Prefix.Uint16);
    }
}
